home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
1116.ZIP
/
TOOLKIT.ARC
/
CTYPE.H
< prev
next >
Wrap
Text File
|
1979-12-31
|
707b
|
23 lines
/*
CTYPE.H written by Wayne Pearson
This Small C header file converts characters to upper and lower case.
toupper() converts only to upper case and leaves characters in upper
case if they already are in upper case.
tolower() converts only to lower case and leaves characters in lower
case if they already are in lower case.
The value passed is of variable type char.
*/
toupper(ctog)
char ctog;
{
if((ctog >= 'a')&(ctog <= 'z')) ctog = ctog - 'a' + 'A';
}
tolower(ctog)
char ctog;
{
if((ctog >= 'A')&(ctog <= 'Z')) ctog = ctog - 'A' + 'a';
}